
#ifndef REPLACE_DOF_VISITOR
#define REPLACE_DOF_VISITOR 1

#include <string>
#include <vector>
#include <iostream>

#include <osg/NodeVisitor>
#include <osgSim/DOFTransform>

class ReplaceDOFVisitor : public osg::NodeVisitor
{
public:


    ReplaceDOFVisitor();
    ~ReplaceDOFVisitor();
	virtual void apply(osg::Node& node);
	virtual void handleDOF( osgSim::DOFTransform& node );
	void handleDOFVector();
protected:
	std::vector<osgSim::DOFTransform*> _dof_ptr_vector;
};

#endif // !REPLACE_DOF_VISITOR